package com.ruoyi.pcwl.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;
import com.ruoyi.pcwl.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 轮播图信息
 */

@ApiModel("轮播图信息")
@Data
public class CarouselItem implements Serializable {


	/**
	 * 轮播图子项id
	 */

	@ApiModelProperty("轮播图子项id")
	@JsonSerialize(using= ToStringSerializer.class)
//	@Excel(name = "轮播图序号", cellType = Excel.ColumnType.NUMERIC, prompt = "轮播图序号")
	@Excel(name = "轮播图序号")
	private Long id;

	/**
	 * 轮播图id
	 */

	@ApiModelProperty(value = "轮播图id",required = true)
	@JsonSerialize(using= ToStringSerializer.class)
	private Long carouselId;

	/**
	 * 文件ID
	 */

	@ApiModelProperty("文件ID")
	private Long mediaFileId;

	/**
	 * 链接
	 */

	@ApiModelProperty("链接")
	@Excel(name = "链接")
	private String url;

	/**
	 * 上传人
	 */

	@ApiModelProperty("上传人")
	private String username;

	/**
	 * 上传时间
	 */

	@ApiModelProperty("上传时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate;

	/**
	 * 修改时间
	 */

	@ApiModelProperty("修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
	private Date changeDate;

	/**
	 * 状态,1:正常，0:不展示
	 */

	@ApiModelProperty("状态,1:正常，0:不展示")
	private String status;

	/**
	 * 备注
	 */

	@ApiModelProperty("备注")
	private String remark;

	/**
	 * 图片访问地址
	 */

	@ApiModelProperty("图片访问地址")
	@Excel(name = "图片访问地址")
	private String pic;

}
